package com.Jano.service;

import com.Jano.entity.Invitation;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * description: InvitationService <br>
 * date: 2022/7/12 1:52 PM <br>
 * author: zoumaoji <br>
 * version: 1.0 <br>
 */

public interface InvitationService {

    /**
     * 分页查询帖子
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<Invitation> findInvitationPagination(Integer pageNum, Integer pageSize);

    /**
     * 根据标题查找相关帖子
     * @param title
     * @return
     */
    PageInfo<Invitation> findInvitationByName(Integer pageNum, Integer pageSize,String title);

    /**
     * 删除帖子
     * @param InvitationId
     * @return
     */
    Boolean deleteInvitationById(Integer InvitationId);
}
